package com.mingshine.cloud.test;
 
 
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
 
/**
 * 这里有BUG，成功后没过来
 * @Class MsgSendReturnCallback
 * @Author 作者姓名:LiuXing
 * @Version 1.0
 * @Date 创建时间：2019-05-22 11:53
 * @Direction 类说明
 */
public class MsgSendReturnCallback implements RabbitTemplate.ReturnCallback {
 
    @Override
    public void returnedMessage(Message message, int replyCode, String replyText, String exchange, String routingKey) {
        System.out.println("回馈消息："+message);
    }
 
}